package com.alex.senior1.week1.service.impl;

import com.alex.senior1.week1.domain.TbGoods;
import com.alex.senior1.week1.dao.TbGoodsMapper;
import com.alex.senior1.week1.service.ITbGoodsService;
import com.alex.senior1.week1.vo.GoodsVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.springframework.stereotype.Service;

/**
 * <p>
 * 商品表 服务实现类
 * </p>
 *
 * @author alex
 * @since 2019-11-01
 */
@Service
public class TbGoodsServiceImpl extends ServiceImpl<TbGoodsMapper, TbGoods> implements ITbGoodsService {

	@Override
	public IPage<GoodsVo> getGoodsByPageAndName(IPage<GoodsVo> page, QueryWrapper<GoodsVo> queryWrapper) {
		return this.baseMapper.getGoodsByPageAndName(page, queryWrapper);
	}

	@Override
	public GoodsVo getGoodsById(QueryWrapper<GoodsVo> queryWrapper) {
		
		return this.baseMapper.getGoodsById(queryWrapper);
	}

}
